package com.yowasa.xiuxian.engine.hone.special;

import com.yowasa.xiuxian.annoations.SE;
import com.yowasa.xiuxian.engine.hone.SpecialInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ElementEnum;
import com.yowasa.xiuxian.entity.enums.StageEnum;
import com.yowasa.xiuxian.exception.HandlerException;

@SE(name = "百锻成仙",upAbility = 10,needTravel = 5000)
public class BaiDuanChengXian implements SpecialInterface {
    @Override
    public ElementEnum getElement() {
        return null;
    }

    @Override
    public void limit(UserBO user) {
        if (user.getStage() > StageEnum.ZHU_JI.getLevel()) {
            throw new HandlerException("学习百锻成仙需要始明之青以下");
        }

    }

    @Override
    public String limitDesc() {
        return "始明之青以下可以学习";
    }

    @Override
    public String desc() {
        return "修炼经验溢出20%后结束修炼会增加一层计数，每层提高当前5%的属性值，最高6层，需要了彻之白境界方可生效";
    }

}